package com.rceeslca.modules.oss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rceeslca.modules.oss.dao.SysOssDao;
import com.rceeslca.modules.oss.entity.SysOssEntity;
import com.rceeslca.modules.oss.service.SysOssService;
import com.rceeslca.common.constant.Constant;
import com.rceeslca.common.page.PageData;
import com.rceeslca.common.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 文件上传
 * @author rceeslca
 */
@Service
public class SysOssServiceImpl extends BaseServiceImpl<SysOssDao, SysOssEntity> implements SysOssService {

    @Override
    public PageData<SysOssEntity> page(Map<String, Object> params) {
        IPage<SysOssEntity> page = baseDao.selectPage(
                getPage(params,Constant.CREATE_DATE,false),
                new QueryWrapper<>()
        );

        return getPageData(page, SysOssEntity.class);
    }

}
